package com.visionet.eurekaclient.entity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Author: pengjx
 * @Date: 2019-01-18 18:01
 */
@Entity
@Table(name = "order_insurance")
public class InsuranceOrder {

    @Column(name = "baseOrder_id")
    private String baseOrderId;//主订单编号
    @Column(name = "policy_no")
    private String policyNo;//保单号
    @Column(name = "inceptionDate")
    private Date inceptionDate;//保险起期
    @Column(name = "planendDate")
    private Date planendDate;//保险止期
    @Column(name = "product_code")
    private String productCode;//产品代码,其中产品信息与保险公司在其他数据表配置
    @Column(name = "product_name")
    private String productName;//产品名称
    @Column(name = "premium")
    private BigDecimal premium;//保费
    @Column(name = "amount")
    private BigDecimal amount;//保额
    @OneToMany
    @JoinColumn(name = "embed_order_id")
    private List<Consumer> consumerList;//保单关系人

}
